<?php

namespace App;

class Club extends Model
{
    protected $table = 't_club';
    public $timestamps = false;

    public function memberCount()
    {
    	return ClubUser::where(['club_id' => $this->club_id, 'state' => 10])->count();
    }
} 